package edu.wpi.cs509.ui.simulators;

import java.util.Random;
import java.util.TimerTask;

import edu.wpi.cs509.ui.intfc.ClientLogicNotify;

public class PlayerStatsNotfiy extends TimerTask {

	private Random R = new Random();
	private ClientLogicNotify ui;
	private String username;
	
	public PlayerStatsNotfiy( ClientLogicNotify ui, String username ) {
		this.ui = ui;
		this.username = username;
	}
	
	@Override
	public void run() {
		PlayerStats myStats = new PlayerStats( username, R.nextInt(100), R.nextInt(100), R.nextInt(20));
		ui.notifyPlayerStats(myStats);
	}

}
